package cn.crm.spring.repository;


import cn.crm.spring.pojo.Right;
import cn.crm.spring.pojo.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RightRepository extends JpaRepository<Right, String> {
    /**
     * 根据角色查询权限集合
     * @param role
     * @return
     */
    public List<Right> findRightsByRolesOrderByRightCode(Role role);

}
